<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:body>
	<ui:composition template="templates/commonPage.xhtml">
		<ui:define name="pagecontent">
			<div class="login">
			<h2><h:outputText value="#{loginMB.message}"/></h2>
			<hr/>
			<h:form id="Form">
 				<fieldset> 
 					<h:outputLabel for="login">Email <span
							class="requis">*</span>
 					</h:outputLabel>
					<h:inputText id="login" value="#{loginMB.user.mail}" required="true"
						size="20" maxlength="60" />
					<br />

					<h:outputLabel for="password">Password<span
							class="requis">*</span>
					</h:outputLabel>
					<h:inputSecret id="password" value="#{loginMB.user.password}"
						required="true" size="20" maxlength="20" />
					<br />

 				</fieldset>
				<h:commandButton action="#{loginMB.submit}" value="Submit" />
			</h:form>
			<h:link outcome="createaccount">Create account</h:link>
			</div>
		</ui:define>

	</ui:composition>
</h:body>
</html>